#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:PEOPLE.py
# author:wmf
# datetime:2021/4/17 21:32
# software: PyCharm
'''
this is function description
'''
# import module your need


import DOG


class People:
    people_count = [0]

    def __init__(self, name, life=100, attack=10):
        self.name = name
        self.life = life
        self.attack = attack
        self.people_count[0] = self.people_count[0] + 1

    def make_hurt(self, dog):
        dog.life = dog.life - self.attack
        if dog.attack > 0 and self.attack > 0:
            dog.attack = dog.attack - 3
        print("%s攻击了%s,%s的血量下降了%d" % (self.name, dog.name, dog.name, self.attack))
        print("%s的剩余血量为%d" % (dog.name, dog.life))
